---@class Battle.BuffTimeIntervalCondition:Battle.IBuffCondition
local t = Battle.CreateClass("BuffTimeIntervalCondition",Battle.IBuffCondition)
Battle.BuffTimeIntervalCondition = t
function t:ctor(buff,interval)
    ---@type Battle.Buffer
    self.buff = buff
    self.interval = interval/1000
    self.time = interval/1000
    self.isActive = false
end
function t:Update(dt)
    self.time = self.time - dt
    if self.time <= 0 then
        self.isActive = true
    end
end
function t:Check()
    return self.isActive
end
function t:Execute()
    self.isActive = false
    self.time = self.interval
end
